package org.xqyy.eval.dao;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import org.xqyy.eval.model.TDept;
import org.xqyy.eval.model.TestPaper;
import tk.mybatis.mapper.common.Mapper;

import java.util.HashMap;
import java.util.List;

@Repository
public interface TPaperMapper extends Mapper<TestPaper> {

    /**
     * 根据科室Id查询应当评价试卷
     * @param deptId
     * @return
     */
    public List<TestPaper> findMapperPaperByDeptId(@Param("deptId") String deptId);

    /**
     * 根据科室Id查询应当评价试卷
     * @param deptId
     * @return
     */
    public HashMap<String,Object> findEvalDeptNameByDeptId(@Param("deptId") String deptId,@Param("paperid") Integer paperid);

    /**
     * 根据科室Id查询应当评价试卷
     * @param deptId
     * @return
     */
    public List<TDept> findEvalDeptListByDeptId(@Param("deptId") String deptId, @Param("paperid") Integer paperid);

}
